const Router = require('koa-router');
let musicRouter = new Router();
const musicController = require('../controllers/music');

musicRouter
    .get('/music/index', musicController.showIndex)
    .get('/music/add', musicController.showAdd)
    .get('/music/edit', musicController.showEdit)
    .post('/music/add-music', musicController.addMusic)
    .put('/music/update-music', musicController.updateMusic)
    .delete('/music/del-music', musicController.deleteMusic);

module.exports = musicRouter;